import request from '@/utils/request'

// 查询课程标签列表
export function listCourseTag(query) {
  return request({
    url: '/course/courseTag/list',
    method: 'get',
    params: query
  })
}

// 查询课程标签所有列表
export function listAllCourseTag(query) {
  return request({
    url: '/course/courseTag/listAll',
    method: 'get',
    params: query
  })
}

// 查询课程标签详细
export function getCourseTag(id) {
  return request({
    url: '/course/courseTag/getInfo/' + id,
    method: 'get'
  })
}

// 新增课程标签
export function addCourseTag(data) {
  return request({
    url: '/course/courseTag/add',
    method: 'post',
    data: data
  })
}

// 修改课程标签
export function updateCourseTag(data) {
  return request({
    url: '/course/courseTag/edit',
    method: 'post',
    data: data
  })
}

// 删除课程标签
export function delCourseTag(id) {
  return request({
    url: '/course/courseTag/remove/' + id,
    method: 'get'
  })
}
